package org.yjc.repository;

import java.util.List;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.stereotype.Repository;
import org.yjc.entity.Student;
@Repository
public interface StudentRepository extends JpaRepository<Student,Integer>,JpaSpecificationExecutor<Student>{

	public Student findByUserNameAndPassWord(String userName, String passWord);

	public List<Student> findByTbClassId(Integer tbclassid);

	public Page<Student> findByTbClassId(Pageable pageable, Integer tbclassid);

	public Page<Student> findByTbClassId(Specification spec, Pageable pageable, Integer tbclassid);

}
